{% extends 'base.html' %}
{% block content %}
    <div class="col-md-8 ">
        <div class="panel panel-primary" style="margin-top: 10px">
            <div class="panel-heading">
                {#                {% for item in request.url_record %}#}
                {#                 <a href="/web{{ item.url }}" style="color: white">{{ item.title }}</a>#}
                {#                {% endfor %}#}
            </div>
            <form style="margin-left: 10px" action="" method="post">
                {% csrf_token %}
                <div class="form-group" style="margin-top: 10px">
                    <label for="">二级菜单名称</label>
                    <input type="text" class="form-control" name="title" value="{{ second_menus.title }}">
                </div>
                <div class="form-group" style="margin-top: 10px">
                    <label for="">含正则的URL</label>
                    <input type="text" class="form-control" name="url" value="{{ second_menus.url }}">
                </div>
                <div class="form-group" style="margin-top: 10px">
                    <label for="">URL别名</label>
                    <input type="text" class="form-control" name="alias" value="{{ second_menus.alias }}">
                </div>
                <div>
                    <label for="">所属菜单</label>
                    <select class="form-group" name="menu_id">
                        <option value="{{ second_menus.menu_id }}" selected="selected">{{ second_menus.menu.title }}</option>
                        {% for menu in menu_obj %}
                            <option value="{{ menu.id}}">{{ menu.title }}</option>
                        {% endfor %}
                    </select>
                </div>
                <input type="submit" value="保存" class="btn btn-primary">
            </form>
        </div>
    </div>
{% endblock content %}